﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D9D RID: 3485
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class QuitBattleCsReq : IMessage<QuitBattleCsReq>, IMessage, IEquatable<QuitBattleCsReq>, IDeepCloneable<QuitBattleCsReq>, IBufferMessage
	{
		// Token: 0x17002C49 RID: 11337
		// (get) Token: 0x06009C70 RID: 40048 RVA: 0x001A2E1F File Offset: 0x001A101F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<QuitBattleCsReq> Parser
		{
			get
			{
				return QuitBattleCsReq._parser;
			}
		}

		// Token: 0x17002C4A RID: 11338
		// (get) Token: 0x06009C71 RID: 40049 RVA: 0x001A2E26 File Offset: 0x001A1026
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return QuitBattleCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002C4B RID: 11339
		// (get) Token: 0x06009C72 RID: 40050 RVA: 0x001A2E38 File Offset: 0x001A1038
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return QuitBattleCsReq.Descriptor;
			}
		}

		// Token: 0x06009C73 RID: 40051 RVA: 0x001A2E3F File Offset: 0x001A103F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitBattleCsReq()
		{
		}

		// Token: 0x06009C74 RID: 40052 RVA: 0x001A2E48 File Offset: 0x001A1048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitBattleCsReq(QuitBattleCsReq other) : this()
		{
			this.rebattleType_ = other.rebattleType_;
			this.stt_ = ((other.stt_ != null) ? other.stt_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009C75 RID: 40053 RVA: 0x001A2E94 File Offset: 0x001A1094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitBattleCsReq Clone()
		{
			return new QuitBattleCsReq(this);
		}

		// Token: 0x17002C4C RID: 11340
		// (get) Token: 0x06009C76 RID: 40054 RVA: 0x001A2E9C File Offset: 0x001A109C
		// (set) Token: 0x06009C77 RID: 40055 RVA: 0x001A2EA4 File Offset: 0x001A10A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RebattleType RebattleType
		{
			get
			{
				return this.rebattleType_;
			}
			set
			{
				this.rebattleType_ = value;
			}
		}

		// Token: 0x17002C4D RID: 11341
		// (get) Token: 0x06009C78 RID: 40056 RVA: 0x001A2EAD File Offset: 0x001A10AD
		// (set) Token: 0x06009C79 RID: 40057 RVA: 0x001A2EB5 File Offset: 0x001A10B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleStatistics Stt
		{
			get
			{
				return this.stt_;
			}
			set
			{
				this.stt_ = value;
			}
		}

		// Token: 0x06009C7A RID: 40058 RVA: 0x001A2EBE File Offset: 0x001A10BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as QuitBattleCsReq);
		}

		// Token: 0x06009C7B RID: 40059 RVA: 0x001A2ECC File Offset: 0x001A10CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(QuitBattleCsReq other)
		{
			return other != null && (other == this || (this.RebattleType == other.RebattleType && object.Equals(this.Stt, other.Stt) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009C7C RID: 40060 RVA: 0x001A2F1C File Offset: 0x001A111C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RebattleType != RebattleType.None)
			{
				num ^= this.RebattleType.GetHashCode();
			}
			if (this.stt_ != null)
			{
				num ^= this.Stt.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009C7D RID: 40061 RVA: 0x001A2F77 File Offset: 0x001A1177
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009C7E RID: 40062 RVA: 0x001A2F7F File Offset: 0x001A117F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009C7F RID: 40063 RVA: 0x001A2F88 File Offset: 0x001A1188
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.stt_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.Stt);
			}
			if (this.RebattleType != RebattleType.None)
			{
				output.WriteRawTag(88);
				output.WriteEnum((int)this.RebattleType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009C80 RID: 40064 RVA: 0x001A2FE4 File Offset: 0x001A11E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RebattleType != RebattleType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.RebattleType);
			}
			if (this.stt_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Stt);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009C81 RID: 40065 RVA: 0x001A303C File Offset: 0x001A123C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(QuitBattleCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RebattleType != RebattleType.None)
			{
				this.RebattleType = other.RebattleType;
			}
			if (other.stt_ != null)
			{
				if (this.stt_ == null)
				{
					this.Stt = new BattleStatistics();
				}
				this.Stt.MergeFrom(other.Stt);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009C82 RID: 40066 RVA: 0x001A30A4 File Offset: 0x001A12A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009C83 RID: 40067 RVA: 0x001A30B0 File Offset: 0x001A12B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 74U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RebattleType = (RebattleType)input.ReadEnum();
					}
				}
				else
				{
					if (this.stt_ == null)
					{
						this.Stt = new BattleStatistics();
					}
					input.ReadMessage(this.Stt);
				}
			}
		}

		// Token: 0x04003C73 RID: 15475
		private static readonly MessageParser<QuitBattleCsReq> _parser = new MessageParser<QuitBattleCsReq>(() => new QuitBattleCsReq());

		// Token: 0x04003C74 RID: 15476
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003C75 RID: 15477
		public const int RebattleTypeFieldNumber = 11;

		// Token: 0x04003C76 RID: 15478
		private RebattleType rebattleType_;

		// Token: 0x04003C77 RID: 15479
		public const int SttFieldNumber = 9;

		// Token: 0x04003C78 RID: 15480
		private BattleStatistics stt_;
	}
}
